package utill

import org.apache.commons.pool2.impl.GenericObjectPoolConfig
import redis.clients.jedis.{Jedis, JedisPool}

object JedisUtils {
    val jedisPool = new JedisPool(new GenericObjectPoolConfig(),"对应主机")//如果忘记了 history |grep redis
    def getJedisClient():Jedis={
      jedisPool.getResource
    }

}
